package com.baitiaojun.system.admin.controller.user.req;

import com.baitiaojun.common.enums.impl.ServiceExpEnums;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public class UserRegisterReq {

    @NotEmpty(message = "验证码不能为空")
    private String captcha;

    @NotEmpty(message = "验证码唯一标识不能为空")
    private String captchaId;

    @NotEmpty(message = "用户名不能为空")
    @Size(message = "账户长度必须在2到20个字符之间", min = 2, max = 20)
    private String username;

    @NotEmpty(message = "密码不能为空")
    @Size(message = "密码长度必须在1到255个字符之间", min = 1, max = 255)
    private String password;
}
